﻿/// <summary>
/// MonoBehaviour单例管理器
/// </summary>
public sealed partial class ESF_SingleMonoBehaviourManager 
{
    /// <summary>
    /// 调用所有单例的Clear方法
    /// </summary>
    public void Recycle()
    {
        if (mSingleCache.Count > 0)
        {
            foreach (AbsESF_SimulateBehaviour key in mSingleCache.Values)
            {
                key?.Recycle();
            }
        }
    }
}
